import { request } from "@/axios/request";

// 查询医生钱包// 我的钱包接口
// export function getFindDoctorWallet(doctorId: number, sessionId: string) {
//   return request({
//     url: '/api/health/doctor/verify/v1/findDoctorWallet',
//     headers: {
//       doctorId: doctorId,
//       sessionId: sessionId,
//       'Content-Type': 'application/json'
//     },
//     method: 'GET',
//     params: { doctorId, sessionId }
//   })
// }

// 查询科室列表
export function findDepartment(){
    return request({
        url:'/api/health/share/knowledgeBase/v1/findDepartment',
        method:'GET'
    })
}

// 病友圈列表展示
export function findSickCircleList(departmentId:number,page:number,count:number){
    return request({
        url:'/api/health/doctor/sickCircle/v1/findSickCircleList',
        method:'GET',
        params:{
            departmentId,
            page,
            count
        }
    })
}
//发表评论
export function publishComment(doctorId:number,sessionId:string,sickCircleId:any,content:string){
    return request({
        url:'/api/health/doctor/sickCircle/verify/v1/publishComment',
        headers:{
            doctorId,
            sessionId,
        },
        method:'POST',
        params:{
            sickCircleId,
            content
        }
    })
}
// 病友圈详情
export function bingXiang(doctorId:number,sessionId:string,sickCircleId:number){
    return request({
        url:'/api/health/doctor/sickCircle/v1/findSickCircleInfo',
        method:'GET',
        params:{
            doctorId,
            sessionId,
            sickCircleId
        }
    })
}